package com.we.wecc.bg.mid.impl;

import com.we.wecc.bg.mid.service.BackService;
import com.we.wecc.bk.db.mapper.BookMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BackServiceImpl implements BackService{

    @Resource
    BookMapper bookMapper;

    @Override
    public Boolean reviseProfit(double profitNum, Integer type) {
        Boolean flag = false;
        int i = bookMapper.reviseProfit(profitNum, type);
        if(i != 0){
            flag = true;
        }
        return flag;
    }
}
